<template>
  <div>
    <div class="demo-drawer__content">
      <el-form :model="form">
        <el-form-item :label-width="formLabelWidth" label="活动名称" >
          <el-input v-model="form.name" autocomplete="off"></el-input>
        </el-form-item>
        <el-form-item :label-width="formLabelWidth" label="活动区域" >
          <el-select v-model="form.region" placeholder="请选择活动区域">
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option>
          </el-select>
        </el-form-item>
      </el-form>
      <div class="demo-drawer__footer">
        <el-button @click="cancelForm">取 消</el-button>
        <el-button type="primary" @click="$refs.drawer.closeDrawer()" :loading="loading">
          {{
            loading ? '提交中 ...' : '确 定'
          }}
        </el-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'justDrawer',
  data() {
    return {
      formLabelWidth: '120px',
      form: {
        name: ''
      }
    }
  }
}
</script>

<style scoped>

</style>
